<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/26 0026
 * Time: 21:04
 */

function C($jsonName,$key=null){
    $content=file_get_contents(PATH."/config/{$jsonName}.json");
    $content=json_decode($content,true);
    if(empty($key)){
        return $content;
    }else{
        return $content[$key];
    }
}